package main;

/**
 * Created by ChengGM on 2016/12/8.
 */
public class Folwer {
    int count =0;
    String s = "初始值";
    Folwer(int f){
        count = f;
        System.out.println("初始化后，count值："+count);
    }
    Folwer(String ss){
        s=ss;
        System.out.println("初始化后，s值："+s);
    }
    Folwer(int f, String ss){
//        this(f);
        this(ss);
        this.s= ss;//s赋新值
        System.out.println("多参构造");
    }
    Folwer(){
        this(54,"hello");
        System.out.println("无参构造");

    }
    void printCount(){
//        this(11);
        System.out.println(s + " "+ count);
    }
    public static void main(String[] args){
        Folwer f = new Folwer( 11,"天下大乱");
//        f.printCount();
    }

}
